package com.itheima.travel.config;


import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.ControllerAdvice;

@Configuration//声明Spring的配置类
@ComponentScan(value = "com.itheima.travel",
excludeFilters = {@ComponentScan.Filter(type =
FilterType.ANNOTATION,classes = {Controller.class, ControllerAdvice.class})})
@EnableTransactionManagement//开启事务管理器
@EnableAspectJAutoProxy//开启AOP支持
public class SpringConfig {
}
